package com.example.myapplication.video.video_sift;

import com.example.mvp.mvp.presenter.BasePresenter;
import com.example.myapplication.b_entity.Daxia;
import com.example.myapplication.video.video_bean.Video_Text_Bean;

import java.util.List;

import io.reactivex.Observer;
import io.reactivex.disposables.Disposable;


public class Vido_Presenter extends BasePresenter<Vido_Contract.Vido_Model, Vido_Contract.Vido_View> {
    public Vido_Presenter(Vido_Contract.Vido_Model mymodel, Vido_Contract.Vido_View myview) {
        super(mymodel, myview);
    }
    public void getVido(){
        mymodel.requestVido(10, myview.getpagr(), new Observer<Daxia>() {
            @Override
            public void onSubscribe(Disposable d) {

            }

            @Override
            public void onNext(Daxia daxia) {

                myview.initAdapter(daxia.getData());

            }

            @Override
            public void onError(Throwable e) {

            }

            @Override
            public void onComplete() {

            }
        });
    }
}
